{% extends "admin/layout.jinja2" %}
{% block title %}Home<-{{ super() }}{% endblock %}
{% block head %}
    {{ super() }}
    <style type="text/css">
    </style>
    {#
    <script type="text/javascript">
        if(!window.GLOBAL) {
          window.GLOBAL = {};
        }
        window.GLOBAL.IS_ADMIN = "{{ is_admin }}".toLowerCase() == 'true' ? true : false;
    </script>
    #}
{% endblock %}
{% block content %}
    {{ super() }}
{% endblock %}
{% block right_content %}
    <div class="pure-g">
        <div class="pure-u-1">
            {% if articles is defined %}
            <ul>
                {% for article in articles %}
                <li>
                    <a href="{{ url_for('admin.article_edit', _id=article.id) }}" target="_blank">
                        <strong>{{ article.title | safe }}</strong>
                    </a>
                    <div>{{ article.summary | _AVOID_EMPTY }}</div>
                </li>
                    
                {% endfor %}
            </ul>
            {% endif %}
        </div>
    </div>
{% endblock %}
{% block js_import %}
    {{ super() }}
    {% assets "jl_dist" %}
        <script type="text/javascript">
            GLOBAL.JL_DIST = "{{ ASSET_URL }}";
        </script>
    {% endassets %}
    <script type="text/javascript" src="{{ url_for('static', filename='assets/admin/js/article/list.js') }}"></script>
{% endblock %}